﻿// Program.cs
using System;
class Program
{
    static void Main(string[] args)
    {
        // 创建工厂集合
        var factories = new System.Collections.Generic.List<IClusteringFactory>
        {
            
            new DbscanFactory(),
            
        };

        // 使用抽象工厂创建算法和参数
        foreach (var factory in factories)
        {
            var algorithm = factory.CreateClusteringAlgorithm();
            var parameters = factory.CreateParams();

            Console.WriteLine(parameters.ParamsToString());
            Console.WriteLine(algorithm.Calculate(parameters));
            Console.WriteLine();
        }
    }
}